import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:niu_app/pages/dynamic/transaction/Delegation_records/delegation_records_page.dart';
import 'package:niu_app/pages/dynamic/transaction/Follower/follower_page.dart';
import 'package:niu_app/pages/dynamic/transaction/Transaction_records/transaction_records_page.dart';
class pub2tabbar extends StatefulWidget {
  @override
  _pub2tabbarState createState() => _pub2tabbarState();
}

class _pub2tabbarState extends State<pub2tabbar> {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 600+44+30.0.h,
      child: DefaultTabController(
        length: 3,
        child: Column(
          children: [
            Container(
              height: 44.h,
              width: 375.w,
              child: TabBar(
                labelColor: Colors.black,
                unselectedLabelColor: Colors.grey,
                indicatorColor: Color(0000000000),
                labelStyle: TextStyle(fontWeight: FontWeight.bold),
                tabs: [
                  Tab(text: "委托记录",),
                  Tab(text: "交易记录",),
                  Tab(text: "跟随人员",)
                ],
              ),
            ),
            Expanded(
                flex: 1,
                child: TabBarView(
                  children: [
                    delegation_records_page(),
                    transaction_records_page(),
                    follower_page()
                  ],
                )
            )
          ],
        ),

      ),
    );
  }
}
